import { _decorator, Component, Node, ScrollBar, Sprite } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('ListBar')
export class ListBar extends ScrollBar {
    onLoad() {
        const renderComp = this.node.getComponent(Sprite);
        if (renderComp) {
            this._opacity = renderComp.color.a;
        }
    }

    protected onEnable() {

    }

}

